package com.cbgolf.oa.entity;

import java.util.List;

/**
 * @author lq
 * @date 2017/9/6
 */

public class TeeTimeBean {

  public String teeTimeDate;
  public String teeTimeId;

  //------------------------------------------------------------------------------------------------
//    public String id;
//    public String startTime;
//    public String personNumber;
//
  public String week;
  public String day;
  public String start;
  public String end;

  public List<TeeTime> teeTimeList;

  public class TeeTime {

    public String id;
    public String personNumberForApp;
    public String personNumber;
    public String startTime;
  }

  public String id;
  public String startTime;
  public String backCourtTime;
  public String recordCount;
  public String noRecordCount;

  public boolean isNoData;
  public String errorMsg;
  public int errorCode;

  public static class Builder {

    TeeTimeBean bean;

    public Builder() {
      bean = new TeeTimeBean();
    }

    public Builder setIsNoData(boolean isNoData) {
      bean.isNoData = isNoData;
      return this;
    }

    public Builder setError(String error, int code) {
      bean.errorCode = code;
      bean.errorMsg = error;
      return this;
    }

    public TeeTimeBean build() {
      return bean;
    }
  }

  public List<String> sourceTypeLists;


  /**
   * hasPermission : true
   * teeTimes : [{"teeTimeId":"73e5cc1052dd11e8aec900163e0d7019","teeTimeDate":1528333200000,"sourceTypeLists":["OA"]},{"teeTimeId":"73e5cc1252dd11e8aec900163e0d7019","teeTimeDate":1528333800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc1452dd11e8aec900163e0d7019","teeTimeDate":1528334400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc1652dd11e8aec900163e0d7019","teeTimeDate":1528335000000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc1852dd11e8aec900163e0d7019","teeTimeDate":1528335600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc1a52dd11e8aec900163e0d7019","teeTimeDate":1528336200000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc1c52dd11e8aec900163e0d7019","teeTimeDate":1528336800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc1e52dd11e8aec900163e0d7019","teeTimeDate":1528337400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc2052dd11e8aec900163e0d7019","teeTimeDate":1528338000000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc2252dd11e8aec900163e0d7019","teeTimeDate":1528338600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc2452dd11e8aec900163e0d7019","teeTimeDate":1528339200000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc2652dd11e8aec900163e0d7019","teeTimeDate":1528339800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc2852dd11e8aec900163e0d7019","teeTimeDate":1528340400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc2a52dd11e8aec900163e0d7019","teeTimeDate":1528341000000,"sourceTypeLists":["APP"]},{"teeTimeId":"73e5cc2c52dd11e8aec900163e0d7019","teeTimeDate":1528341600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc2e52dd11e8aec900163e0d7019","teeTimeDate":1528342200000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3052dd11e8aec900163e0d7019","teeTimeDate":1528342800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3252dd11e8aec900163e0d7019","teeTimeDate":1528343400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3452dd11e8aec900163e0d7019","teeTimeDate":1528344000000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3652dd11e8aec900163e0d7019","teeTimeDate":1528344600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3852dd11e8aec900163e0d7019","teeTimeDate":1528345200000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3a52dd11e8aec900163e0d7019","teeTimeDate":1528345800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3c52dd11e8aec900163e0d7019","teeTimeDate":1528346400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc3e52dd11e8aec900163e0d7019","teeTimeDate":1528347000000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4052dd11e8aec900163e0d7019","teeTimeDate":1528347600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4252dd11e8aec900163e0d7019","teeTimeDate":1528348200000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4452dd11e8aec900163e0d7019","teeTimeDate":1528348800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4652dd11e8aec900163e0d7019","teeTimeDate":1528349400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4852dd11e8aec900163e0d7019","teeTimeDate":1528350000000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4a52dd11e8aec900163e0d7019","teeTimeDate":1528350600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4c52dd11e8aec900163e0d7019","teeTimeDate":1528351200000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc4e52dd11e8aec900163e0d7019","teeTimeDate":1528351800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5052dd11e8aec900163e0d7019","teeTimeDate":1528352400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5252dd11e8aec900163e0d7019","teeTimeDate":1528353000000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5452dd11e8aec900163e0d7019","teeTimeDate":1528353600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5652dd11e8aec900163e0d7019","teeTimeDate":1528354200000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5852dd11e8aec900163e0d7019","teeTimeDate":1528354800000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5a52dd11e8aec900163e0d7019","teeTimeDate":1528355400000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5c52dd11e8aec900163e0d7019","teeTimeDate":1528356000000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc5e52dd11e8aec900163e0d7019","teeTimeDate":1528356600000,"sourceTypeLists":[]},{"teeTimeId":"73e5cc6052dd11e8aec900163e0d7019","teeTimeDate":1528357200000,"sourceTypeLists":[]}]
   */

  public boolean hasPermission;
  public List<TeeTimesBean> teeTimes;

  public static class TeeTimesBean {

    /**
     * teeTimeId : 73e5cc1052dd11e8aec900163e0d7019
     * teeTimeDate : 1528333200000
     * sourceTypeLists : ["OA"]
     */

    public String teeTimeId;
    public long teeTimeDate;
    public List<String> sourceTypeLists;
  }
}
